<?php
require '../../../zb_system/function/c_system_base.php';

$zbp->Load();

$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}

if (!$zbp->CheckPlugin('BomCheck')) {$zbp->ShowError(48);die();}


$f=GetVars('f');

if(!$f)die;

$file=base64_decode($f);

$s=file_get_contents($file);
$s=RemoveBOM($s);
$b=file_put_contents($file,$s);
if($b){
	echo '<img src="'.$zbp->host.'zb_users/plugin/BomCheck/tick.png" />';
}
